<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" itemscope itemtype="http://schema.org/Article" xmlns:fb="https://www.facebook.com/2008/fbml">
<head prefix="og: http://ogp.me/ns# scyclub: 
                  http://ogp.me/ns/apps/scyclub#">

	<?php
	echo $this->Html->charset('utf-8');
	echo $this->Html->meta('logo.ico','/logo.ico',array('type' => 'icon'));
	//echo $this->Html->meta(array('name' => 'robots', 'content' => 'noindex'));
	//keyworld:
	if(!isset($metakeyword))$metakeyword=$title_for_layout;
	if(!isset($metadescription))$metadescription=$metakeyword;
	echo $this->Html->meta('keywords',$metakeyword);
	echo $this->Html->meta('description',$metadescription);
	echo $this->Html->meta(array('itemprop'=>'name','content'=>$title_for_layout));
	echo $this->Html->meta(array('itemprop'=>'description','content'=>$metadescription));
	//for fb
	echo $this->Html->meta(array('property'=>'og:site_name','content'=>$webConfig['site_name']));
	echo $this->Html->meta(array('property'=>'fb:app_id','content'=>'204609776328294'));
	if(isset($ogTitle))echo $this->Html->meta(array('property'=>'og:title','content'=>$ogTitle));
	if(isset($ogType))echo $this->Html->meta(array('property'=>'og:type','content'=>$ogType));
	if(isset($ogUrl))echo $this->Html->meta(array('property'=>'og:url','content'=>$this->Seo->link($ogUrl)));
	if(isset($ogImage))echo $this->Html->meta(array('property'=>'og:image','content'=>$ogImage));
	if(isset($ogDescription))echo $this->Html->meta(array('property'=>'og:description','content'=>$ogDescription));
	

	
	//css
	echo $this->Html->css('default');
	if(isset($css))echo $this->Html->css($css);
	//js
	echo $this->Html->script('jquery');
	echo $this->Html->script('common');
	
	//title
	
	echo '<title>'.$title_for_layout.'</title>';
	?>	

</head>
<body>
<center>
	<div id="wrap">
		
		
		<!-- body -->
		<div id="body">
			
			<?php echo $this->fetch('content');?>	
			
			<!-- footer -->
			<div id="footer">
				© 2012 Southern CY
			</div>
			<div style="clear:both"></div>		
		</div>
		
		<!-- header -->
		<div id="header">
			<?php echo $this->element('header');?>
		</div>
		
		

	</div>
</center>
<?php echo $this->element('sql_dump');
	//echo $this->Js->writeBuffer();
?>
<?php if(Configure::read('debug')==0){?>
<script type="text/javascript">
//for ga
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-888961-7']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();


  

    
</script>
<?php }?>
</body>
</html>